<?php

namespace App\Http\Controllers\Backend;


class EventController extends BaseController
{
    // 管理员管理
    public function initialize()
    {
        parent::initialize();

        $this->model = 'Event';
    }

    // 推荐
    public function propose()
    {
        $manage = $this->checkManage($this->model);
        if($manage === false){
            return $this->error($manage->getError());
        }

        $result = $manage->onPropose();
        if($result === false){
            return $this->error($manage->getError());
        }

        return $this->success();
    }

}


